package com.hy.erp.inventory.pojo;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
/*import org.jboss.seam.ScopeType ;
import org.jboss.seam.annotations.Name ;
import org.jboss.seam.annotations.Scope ;
*/
import com.hy.erp.inventory.dao.interfaces.IMaterielDao;
import com.hy.erp.inventory.pojo.interfaces.IMaterielType;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-6；时间：上午10:38:47</li>
 * <li>字段类型：long；字段名称：serialVersionUID</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
/*@Entity
@Name("materielType")
@Scope(ScopeType.SESSION)
@Table(name="materielType")
@DaoA(IMaterielDao.class)*/
//public class MaterielType extends AbstractPersistentEntity 	implements IMaterielType
public class MaterielType extends MyBaseModel //implements IPositonType

{

	private static final long	serialVersionUID	=
														541904280778476372L ;

	

	/**
	 * 构造函数
	 */
	public MaterielType(){}

	

	//#################################################################3
	
	
	

	@Column(name="typeName",unique=false,nullable=false,insertable=true,updatable=true)
	@Index(name="materielTypeNameIndex")
	public String getTypeName ( )
	{
		return this.get(IMaterielType.TYPENAME) ;
	}

	public String getDescription ( )
	{
		return this.get(IMaterielType.DESCRIPTION) ;
	}

	//#################################################################3
	
	

	public void setTypeName (
								String typeName )
	{
		super.set ( IMaterielType.TYPENAME , typeName );
	}

	public void setDescription (
									String description )
	{
		super.set ( IMaterielType.DESCRIPTION , description );
	}
	
	
}
